﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CarterWechatServer.DataEntity.Entities
{
    /// <summary>
    /// 菜品分类实体类
    /// </summary>
    [Table("DishCategory")]
    public class DishCategoryEntity
    {
        /// <summary>
        /// 菜品分类Id
        /// </summary>
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 菜品分类名称
        /// </summary>
        [Required]
        [StringLength(50)]
        public string CategoryName { get; set; }

        public virtual ICollection<DishEntity> Dishes { get; set; }
    }
}
